/**
 * Author:yuiop
 * Date:2022/4/7 14:15
 */
package com.devops.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.devops.admin.model.DOSRoleUserRelation;
import com.devops.admin.po.DOSRolePo;
import com.devops.shiro.vm.BaseUserVM;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DOSRoleUserRelationMapper extends BaseMapper<DOSRoleUserRelation> {
    /**
     * @Author heyabo
     * @Description 根据用户id查询角色名称
     * @Date 13:59 2022/4/21
     * @Param [userId]
     * @return com.devops.shiro.vm.BaseUserVM
     **/
    List<BaseUserVM> getRoleByUserId(String userId);

    /**
     * @Author heyabo
     * @Description
     * @Date 10:45 2022/8/29
     * @Param [userIds]
     * @return java.util.List<com.devops.admin.po.DOSRolePo>
     **/
    List<DOSRolePo> getRoles(List<String> userIds);
}
